home *** CD-ROM | disk | FTP | other *** search
- Path: www.cybercity.dk!usenet
- From: monsted@cybercity.dk (Monsted)
- Newsgroups: comp.lang.c++
- Subject: Re: Looking to get out of a loop
- Date: Sun, 17 Mar 1996 13:05:23 GMT
- Organization: Monsted Chartering A/S
- Message-ID: <4ih1at$7q5@vip.cybercity.dk>
- References: <4i9rnh$bbg@gateway.i2020.net>
- NNTP-Posting-Host: 194.16.56.150
- X-Newsreader: Forte Free Agent 1.0.82
-
- milton@i2020.net wrote:
-
- >I am new to this. Can anyone give me some pointers on how to get out of
- >this loop. I am prompting the user for input until the Enter key is
- >pressed. What test to perform on the input variable for the enter key?
-
- >I defined "char ch" as the input variable using "cin" to receive input.
-
- repeat (ch != "\n")
- {
- cin(ch); ???
- }
-
- i think...
-
- Jesper
- +----------------+-----------------------------------+
- | Jesper Monsted | monsted@cybercity.dk |
- | Denmark | |
- +----------------+-----------------------------------+
-
-